<?php include 'product_list_css_js.php'; ?>
<div id="container">
    <?php include 'home_header.php'; ?>

    <div id="main">

        <div id="main-left">
            <div id='pl-ca-path'>
                <a  class='active' href="<?php echo $root_page;?>" title='Trang chủ'>Trang chủ</a><span> &gt; </span>
                <?php foreach ($categoryParent as $key => $value) {?>
                        <?php if($key > 0){?>
                        <span> &gt; </span>
                    <?php } ?>
                    <a href="/danhmuc/<?php echo $value['category_id'];?>/<?php echo $value['category_name_filter'];?>.html" title="<?php echo $value['category_name'];?>"><?php echo $value['category_name'];?></a>
                <?php } ?>
            </div>
            <div id="banner-child"></div>
            <?php if ($hasChildCategory == 1) {?>
                <?php include 'product_list_category.php'; ?>
            <?php } ?>
            <div id="banner-child"></div>
            <div class="clear"></div>
            <table width="794" cellspacing="0" cellpadding="0">
        <tbody>
            
            <tr>
                <td>
                    <table cellspacing="0" cellpadding="0" width="794" height="32" style="background-color:#d3d3d3">
                        <tbody>
                            <tr>
                                <td>
                                    <div class="search" style="padding-top: 5px;">
                                    <form name="frmSearchProduct" id="frmSearchProduct" action="" method="post" onsubmit="MyController.searchProduct();return false;">
                                        Tên sẩn phẩm:<input size="30" type="text" class="search_input_keyword" name="product_keyword" id="product_keyword" autocomplete="off">
                                        <select name="product_maker" id="product_maker" class="search_option">
                                        <option value="0">Tất cả các hãng</option>
                                            <?php foreach ($aryMakerForSearch as $key => $value) {?>
                                                    <option value="<?php echo $value['product_maker_id'];?>" <?php echo ($value['product_maker_name_filter'] == $makerName) ? 'selected' : '';?>><?php echo $value['product_maker_name'];?></option>
                                            <?php } ?>
                                    </select>
                                        Giá từ
                                        <input size="10" type="text" class="search_input_price" id="product_price_from" name="product_price_from" value="<?php echo $priceFrom;?>">
                                        Đến
                                        <input size="10" type="text" class="search_input_price" id="product_price_to" name="product_price_to" value="<?php echo $priceTo;?>">
                                        <input type="hidden" name="product_category_id" id="product_category_id" value="<?php echo $categoryId;?>">
                                        <input type="submit" class="btnsearch" value="Tìm kiếm" onclick="MyController.searchProduct(); return false;">
                                    </form>
                                </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>

        </tbody>
    </table>
            <div id="search_result">
                <?php include 'product_list_product_content.php';?>
            </div>
            <div class="clear" style="height: 5px;"></div>
        </div>
        <div id="main-right">
            <?php include 'product_right_support.php';?>
            <?php if ($hasChildCategory == 0) { ?>
               <?php include 'product_list_product_maker.php'; ?>
            <?php } ?>
            <div class="clear" style="height: 5px;"></div>
            <?php include 'product_right_item_top_3.php'; ?>
            <div class="clear" style="height: 5px;">
                <tr>
                    <td width="220" valign="top"></td>
                </tr>
                <div class="clear" style="height: 5px;"></div>
            </div>

        </div>
        <div class="clear">

        </div>

        <?php include 'home_footer.php';?>

    </div>
</div>
